//更改手机号
(function(){
    function AlterMobilePhone(){}//更改手机号
    AlterMobilePhone.prototype={
        init:function(opts){
            this.required_register=opts.required_register;
            this.statusSubBtn=opts.statusSubBtn;//判断按钮是否可点击下一步操作
            this.nextOperate=opts.nextOperate;//进入下一步链接跳转
            this.formInput=opts.formInput;
            this.nextBtn=opts.nextBtn;//下一步按钮
            this.mobileText=opts.mobileText;//手机号码
            this.codeText=opts.codeText;//短信验证码
            this.getCodeBtn=opts.getCodeBtn;//获取验证码按钮
            this.smsTPL=opts.smsTPL||"none-smsTPL";//短信编码
            this.passEye=opts.passEye||"";//密码眼睛
            this.passText=opts.passText||"";
            this.model={
                modal:opts.model.modal,//模态框
                sureBtn:opts.model.sureBtn,//确认
                cancelBtn:opts.model.cancelBtn,//取消
                codeImg:opts.model.codeImg,//图形验证码
                imgTextBox:opts.model.imgTextBox
            };
            this.oldPhone=opts.oldPhone;
             //公共方法错误样式样式清楚-----------------------------------
            oPublic.focusCancel(this.formInput);

            //公共方法  弹框获取短息验证码--------------
            oPublic.picAlertbox(
                    this.getCodeBtn,
                    this.model.cancelBtn,
                    this.model.sureBtn,
                    this.model.codeImg,
                    this.mobileText,
                    this.model.modal,
                    this.codeText,
                    this.model.imgTextBox,
                    this.smsTPL,
                    this.required_register,
                    this.oldPhone
            );

            //公共方法，密码的显示与隐藏----------------------
            oPublic.eyesPassWord(this.passEye,this.passText);


            //回调函数  判断按钮是否可点击下一步操作
            this.statusSubBtn&&this.statusSubBtn(this.formInput,this.mobileText,this.codeText,this.nextBtn,this.passText);
             //回调函数  进入下一步操作判断
            this.nextOperate&&this.nextOperate(this.formInput,this.nextBtn);
        }
    };
    window.AlterMobilePhone=new AlterMobilePhone();     
})();



